<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	<!-- <span class="color_red">*</span> -->基本信息
</div>
	
	<table class="t_css table01" width="100%" border="0" cellpadding="0" id="daitouren1"	cellspacing="1">
	<col style="width:10%"/>
	<col style="width:15%"/>
	<col style="width:10%"/>
	<col style="width:15%"/>
	<col style="width:10%"/>
	<col style="width:15%"/>
	<col style="width:10%"/>
	<col style="width:15%"/>
  <tr class="li_1">
    <td align="right">姓名：</td>
    <td><span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></td>
    <td align="right">性别：</td>
    <td><c:set var="gender_value"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set>
			<span name="proposal/fzr_gender_name" ><c:if test="${gender_value=='M'}">男</c:if><c:if test="${gender_value=='F'}">女</c:if></span>
			<input type="hidden" name="proposal/fzr_gender_value" value="${gender_value}"/>
	  </td>
    <td align="right">民族：</td>
    <td><span name="proposal/fzr_ethnicity_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_name" /></span></td></td>
    <td align="right"><span class="color_red">*</span>婚否：</td>
    <td colspan="">
		 <label><input type="radio" name="marry_condition"  style="vertical-align: middle;"  class="do" value="1" label="已婚"  onchange=""><span style="vertical-align: middle;">已婚</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		 <label><input type="radio" name="marry_condition"  style="vertical-align: middle;"  class="do" value="2" label="未婚"  onchange=""><span style="vertical-align: middle;">未婚</span></label>
		<input type="hidden" id='marry_condition_value' name="declarant/marry_condition_value" class="required"  label="婚否"  value="<x:out select="$xmlData/data/declarant/marry_condition_value" />">	
		<input type="hidden" id="marry_condition_name"  name="declarant/marry_condition_name" value="<x:out select="$xmlData/data/declarant/marry_condition_name" />">	
		</td>
  </tr>
  
  <tr class="li_2">
   <td align="right"><span class="color_red">*</span>出生地：</td>
   <td><input id="birthplace"  name="declarant/birthplace" label="出生地" type="text"  class="input_css required" style="width: 70%;"     maxlength="20"  value="<x:out select="$xmlData/data/declarant/birthplace" />"/> 
   </td>
   <td align="right">出生日期：</td>
   <td colspan="2">
  <span name="proposal/fzr_birthday" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
		</td>
		
	 <td align="right" colspan=""><span class="color_red">*</span>身体状况：</td>
   <td colspan="2"><input id="body_condition"  name="declarant/body_condition" label="身体状况" type="text"  class="input_css required" style="width: 70%;"     maxlength="20"  value="<x:out select="$xmlData/data/declarant/body_condition" />"/> 
   </td>
  </table>
  
  
  
  <div class="t_bar">
	<!-- <span class="color_red">*</span> -->学历
  </div>
  <table class="t_css table01" width="100%" border="0" cellpadding="0" id="xueli"	cellspacing="1">
	<col style="width:10%"/>
	<col style="width:25%"/>
	<col style="width:25%"/>
	<col style="width:10%"/>
	<col style="width:20%"/>
	<col style="width:15%"/>
  <tr align="center"  class="li_1">
  <td>学历</td>
  <td>毕(肄、结)业院校(所)</td>
  <td>时间</td>
  <td>学制</td>
  <td>所学专业</td>
  <td>学位</td>
  </tr>
  <tr align="center"  class="li_2">
  <td>大学</td>
  <td colspan=""><input id="university_name"  name="declarant/university_name" label="毕(肄、结)业院校(所"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/university_name" />"/></td>
  <td colspan="">
			<c:set var="university_time"><x:out select="$xmlData/data/declarant/university_time" /></c:set>
			<cpt:date id="university_time" name="declarant/university_time" className="date beforeToday" label="大学毕业时间"  value="${university_time}" ></cpt:date> 
	</td>
  <td><input type="text"  label="学制"  name="declarant/university_system" id="university_system"   style="text-align:right; width:80%;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css"  value="<x:out select="$xmlData/data/declarant/university_system" />" /></td>
  <td colspan=""><input id="university_mojor"  name="declarant/university_major" label="所学专业"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/university_major" />"/></td>
  
  <td colspan="1" >
			<c:set var="degree1"><x:out select="$xmlData/data/declarant/degree1_value" /></c:set>
			<cpt:select id="degree1"   style="width:80%;" key="degree"  value="${degree1}" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" id="degree1_value" name="declarant/degree1_value" class="" value="${degree1}" label="学位">
			<input type="hidden" name="declarant/degree1_name" value="<x:out select="$xmlData/data/declarant/degree1_name" />">
		</td>

  </tr>
  
  
  
   <tr align="center"  class="li_1">
  <td>硕士生</td>
  <td colspan=""><input id="master_name"  name="declarant/master_name" label="毕(肄、结)业院校(所"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/master_name" />"/></td>
  <td colspan="">
			<c:set var="master_time"><x:out select="$xmlData/data/declarant/master_time" /></c:set>
			<cpt:date id="master_time" name="declarant/master_time" className=" date beforeToday dateCompareAfterE:master_time:university_time" label="硕士生毕业时间"  value="${master_time}" ></cpt:date> 
	</td>
  <td><input type="text"  label="学制"  name="declarant/master_system" id="master_system"   style="text-align:right; width:80%;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css"  value="<x:out select="$xmlData/data/declarant/master_system" />" /></td>
  <td colspan=""><input id="master_mojor"  name="declarant/master_major" label="所学专业"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/master_major" />"/></td>
  
  <td colspan="1" >
			<c:set var="degree2"><x:out select="$xmlData/data/declarant/degree2_value" /></c:set>
			<cpt:select id="degree2"   style="width:80%;" key="degree"  value="${degree2}" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" id="degree2_value" name="declarant/degree2_value" class="" value="${degree2}" label="学位">
			<input type="hidden" name="declarant/degree2_name" value="<x:out select="$xmlData/data/declarant/degree2_name" />">
		</td>

  </tr>
  
  
  
   <tr align="center"  class="li_2">
  <td>博士生</td>
  <td colspan=""><input id="doctor_name"  name="declarant/doctor_name" label="毕(肄、结)业院校(所"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/doctor_name" />"/></td>
  <td colspan="">
			<c:set var="doctor_time"><x:out select="$xmlData/data/declarant/doctor_time" /></c:set>
			<cpt:date id="doctor_time" name="declarant/doctor_time" className="date beforeToday dateCompareAfterE:doctor_time:master_time" label="博士生毕业时间"  value="${doctor_time}" ></cpt:date> 
	</td>
  <td><input type="text"  label="学制"  name="declarant/doctor_system" id="doctor_system"   style="text-align:right; width:80%;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css"  value="<x:out select="$xmlData/data/declarant/doctor_system" />" /></td>
  <td colspan=""><input id="doctor_mojor"  name="declarant/doctor_major" label="所学专业"  type="text"  class="input_css" style="width: 80%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/doctor_major" />"/></td>
  
  <td colspan="1" >
			<c:set var="degree3"><x:out select="$xmlData/data/declarant/degree3_value" /></c:set>
			<cpt:select id="degree3"   style="width:80%;" key="degree"  value="${degree3}" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" id="degree3_value" name="declarant/degree3_value" class="" value="${degree3}" label="学位">
			<input type="hidden" name="declarant/degree3_name" value="<x:out select="$xmlData/data/declarant/degree3_name" />">
		</td>

  </tr>
  </table>
  
  
  <table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo7"	cellspacing="1">
	<col style="width:20%"/>
	<col style="width:30%"/>
	<col style="width:20%"/>
	<col style="width:30%"/>
  <tr  class="li_1">
  <td align="right"><span class="color_red">*</span>是否硕士生导师：</td>
  <td><label><input type="radio" name="master_teacher"  style="vertical-align: middle;"  class="do" value="1" label="是"  onchange=""><span style="vertical-align: middle;">是</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <label><input type="radio" name="master_teacher"  style="vertical-align: middle;"  class="do" value="2" label="否"  onchange=""><span style="vertical-align: middle;">否</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		  <input type="hidden" id='master_teacher_value' name="declarant/master_teacher_value" class="required"  label="是否硕士生导师"  value="<x:out select="$xmlData/data/declarant/master_teacher_value" />">	
		  <input type="hidden" id="master_teacher_name"  name="declarant/master_teacher_name" value="<x:out select="$xmlData/data/declarant/master_teacher_name" />">	
  </td>
  <td align="right"><span class="color_red">*</span>是否博士生导师：</td>
  <td><label><input type="radio" name="doctor_teacher"  style="vertical-align: middle;"  class="do" value="1" label="是"  onchange=""><span style="vertical-align: middle;">是</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <label><input type="radio" name="doctor_teacher"  style="vertical-align: middle;"  class="do" value="2" label="否"  onchange=""><span style="vertical-align: middle;">否</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		  <input type="hidden" id='doctor_teacher_value' name="declarant/doctor_teacher_value" class="required"  label="是否博士生导师"  value="<x:out select="$xmlData/data/declarant/doctor_teacher_value" />">	
		  <input type="hidden" id="doctor_teacher_name"  name="declarant/doctor_teacher_name" value="<x:out select="$xmlData/data/declarant/doctor_teacher_name" />">	
  </td>
  </tr>
  
      <tr class="li_2">
          <td align="left" colspan="4"><strong>简述博士后研究工作情况（限400字）</strong></td>
      </tr>
      <tr class="li_1">
          <td align="center" colspan="4">
			     <textarea rows="4" style="width:98%;" name='declarant/work_condition' class="input_textarea  maxlength:400"   label="简述博士后研究工作情况"><x:out select="$xmlData/data/declarant/work_condition"/></textarea>
	        <input type='hidden' name='declarant/work_condition_hidden' id='declarant/work_condition_hidden' value='<x:out select="$xmlData/data/declarant/work_condition_hidden"/>'>
	      </td>
      </tr>
   </table>
  
  
  
  
  
  
  
  
  
  
  
  <div class="t_bar">外语水平</div>
  <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo8"">
<thead >
<tr style="border:1px solid #B7D1E6">
<th class="TblHead" align="center" rowspan="" style="width:5%">选择</th>
<th class="TblHead" align="center" rowspan="" style="width:5%">序号</th>
<th class="TblHead" align="center" rowspan="" style="width:25%">语种</th> 
<th class="TblHead" align="center" rowspan="" style="width:65%">水平（通过何种考试及听、说、读、写能力）</th> 
</tr>
</thead>
<tbody id="tab">
        <tr style="display:none"  align="center">
						<td align="center">&nbsp;
						<input type="radio" class="radiobutton" name="selforeignlanguage" >
            <td align="center"><span name="foreignlanguages|foreignlanguage[0]@seq_no" >[index]</span></td>
						<td align="center"><input type="text"  id="language_type[0]" name="foreignlanguages|foreignlanguage[0]|language_type" label="语种"  maxlength="20"
						                          class="required input_text"  value=""  style="width:80%"/></td>
				
						<td align="center"><input type="text"  id="language_level[0]" name="foreignlanguages|foreignlanguage[0]|language_level" label="水平"  maxlength="100"
						                          class="required input_text"  value=""   style="width:80%"/></td>
				</tr>
				<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/foreignlanguages/foreignlanguage" var="foreignlanguage">
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr  align="center">
						<td>&nbsp;
						<input type="radio" class="radiobutton" name="selforeignlanguage" >
						<td align="center"><span   name="foreignlanguages/foreignlanguage[${flag}${index}]@seq_no" ><x:out select="$foreignlanguage/@seq_no"/></span></td>
						<td align="center"><input type="text"  id="language_type[${flag}${index}]" name="foreignlanguages/foreignlanguage[${flag}${index}]/language_type" label="语种"  maxlength="20" 
						                          value="<x:out select="$foreignlanguage/language_type"/>"   style="width:80%"   class="required input_text"/></td>
						
	   			<td align="center"><input type="text"  id="language_level[${flag}${index}]" name="foreignlanguages/foreignlanguage[${flag}${index}]/language_level" label="水平"  maxlength="100"
                                    value="<x:out select="$foreignlanguage/language_level"/>"    style="width:80%"  class="required input_text"/></td>
				</tr>
				  <c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("basicInfo8");
					</script>
					
</tbody>
</table>
	<table width="98%" align="center">
					<tr ><td>
					<input class="button_02" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('basicInfo8',99,'外语水平最多只能填写99条')){addNewRow('basicInfo8');showDateTag('basicInfo8');}try{top.resizeFrame();}catch(e){};">
					&nbsp;<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('basicInfo8','selcooperateOrg')">
					&nbsp;<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('basicInfo8','selcooperateOrg')">
					&nbsp;<input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('basicInfo8','外语水平')">
					</td></tr>
	</table>
	
  
  
  
  <div class="t_bar">工作情况</div>
  <table class="t_css table01" width="100%" border="0" cellpadding="0" id="gongzuo"	cellspacing="1">
	<col style="width:14%"/>
	<col style="width:10%"/>
	<col style="width:33%"/>
	<col style="width:10%"/>
	<col style="width:33%"/>
  <tr  class="li_2">
  <td align="right" colspan="2">现从事何种专业技术工作：</td>
  <td colspan="3"><span name="proposal/fzr_major_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span>
  </td>
  </tr>
  <tr  class="li_1">
  <td align="right" rowspan="2">现从事专业技术工作<br/>所属学科名称及代码</td>
  <td align="right">代码1：</td>
  <td>
        <input id="work1_value" label="现从事专业技术工作所属学科名称及代码-->代码1"
				type="text" class="gray" disabled="disabled" style="width: 78%;"
				maxlength="50" name="declarant/work1_value"
				value="<x:out select="$xmlData/data/declarant/work1_value" />" />
 
  </td>
    <td align="right">名称1：</td>
      <td>
			<c:set var="work1">{'id':'<x:out
						select="$xmlData/data/declarant/work1_code" />','name':'<x:out
						select="$xmlData/data/declarant/work1_name" />'}
		  </c:set>
			<cpt:tree key="medically" cacheable="false" readonly="true" value="${work1}" id="work1" name="declarant/work1"  showPattern="all" shieldPattern="-1" onClick="initTreeValuejsdtr"   label="现从事专业技术工作所属学科名称及代码-->名称1" />
			<input type="hidden" id="work1_code" name="declarant/work1_code" value="<x:out select="$xmlData/data/declarant/work1_code" />" class=""  label="现从事专业技术工作所属学科名称及代码-->名称1"/> 
			<input type="hidden" id="work1_name" name="declarant/work1_name" value="<x:out select="$xmlData/data/declarant/work1_name" />" />
			</td>
  </tr>
  
  
  
  
  
  <tr  class="li_2">
  <td align="right">代码2：</td>
  <td>
        <input id="work2_value" label="现从事专业技术工作所属学科名称及代码-->代码2"
				type="text" class="gray" disabled="disabled" style="width: 78%;"
				maxlength="50" name="declarant/work2_value"
				value="<x:out select="$xmlData/data/declarant/work2_value" />" />

  </td>
  <td align="right">名称2：</td>
      <td>
			<c:set var="work2">{'id':'<x:out
						select="$xmlData/data/declarant/work2_code" />','name':'<x:out
						select="$xmlData/data/declarant/work2_name" />'}
		  </c:set>
			<cpt:tree key="medically" cacheable="false" readonly="true" value="${work2}" id="work2" name="declarant/work2"  showPattern="all" shieldPattern="-1 " onClick="initTreeValuejsdtr"   label="现从事专业技术工作所属学科名称及代码-->名称2" />
			<input type="hidden" id="work2_code" name="declarant/work2_code" value="<x:out select="$xmlData/data/declarant/work2_code" />" class=""  label="现从事专业技术工作所属学科名称及代码-->名称2"/> 
			<input type="hidden" id="work2_name" name="declarant/work2_name" value="<x:out select="$xmlData/data/declarant/work2_name" />" />
			</td>
  </tr>
  
  
  
  
  
  <tr class="li_1">
  <td colspan="2" align="right">现任技术职称：</td>
  <td><span name="proposal/fzr_prof_title_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span></td>
  <td align="right">聘任时间：</td>
  <td><c:set var="work_date1"><x:out select="$xmlData/data/declarant/work_date1" /></c:set>
			<cpt:date id="work_date1" name="declarant/work_date1" value="${work_date1}" className="date beforeToday" label="聘任时间"></cpt:date> 
	</td>
  
  </tr>
  <tr class="li_2">
  <td colspan="2" align="right">现任行政职务：</td>
  <td><span name="proposal/fzr_position" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" /></span></td>
  
  <td align="right">任职时间：</td>
  <td><c:set var="work_date2"><x:out select="$xmlData/data/declarant/work_date2" /></c:set>
			<cpt:date id="work_date2" name="declarant/work_date2" value="${work_date2}" className="date beforeToday" label="任职时间"></cpt:date> 
	</td>
  </tr>
  
  
  <tr class="li_1">
  <td align="right" colspan="2">参加何学术团队、现任何职：</td>
  <td colspan="3"><input id="team_condition"  name="declarant/team_condition" label="参加何学术团队、现任何职" type="text"  class="input_css" style="width: 70%;"  maxlength="50" value="<x:out select="$xmlData/data/declarant/team_condition" />"/> 
  </td>
  </table>
  
  
  <div class="t_bar">配偶简况</div>
  <table class="t_css table01" width="100%" border="0" cellpadding="0" id="peiou"	cellspacing="1">
	<col style="width:10%"/>
	<col style="width:23.3%"/>
	<col style="width:10%"/>
	<col style="width:23.3%"/>
	<col style="width:10%"/>
	<col style="width:23.4%"/>
	<tr class="li_2">
	<td align="right">姓名：</td>
	<td><input id="name"  name="declarant/wife_condition/name" label="姓名" type="text"  class="input_css" style="width: 70%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/wife_condition/name" />"/> 
  </td>
  <td align="right">出生日期：</td>
	<td><c:set var="birthday"><x:out select="$xmlData/data/declarant/wife_condition/birthday" /></c:set>
			<cpt:date id="birthday" name="declarant/wife_condition/birthday" value="${birthday}" className="date beforeToday" label="出生日期"></cpt:date> 
	</td>
	<td align="right">民族：</td>
	<td>
	    <c:set var="ethnicity"><x:out select="$xmlData/data/declarant/wife_condition/ethnicity_value" /></c:set>
	    <cpt:select id="ethnicity"  key="nation"     value="${ethnicity}"  onChange="initControlValue(this.id)"  cacheable="false" style="width:76%"></cpt:select>
			<input type="hidden" name="declarant/wife_condition/ethnicity_value" id="ethnicity_value"  value="<x:out select="$xmlData/data/declarant/wife_condition/ethnicity_value" />" label="民族" >
			<input type="hidden" name="declarant/wife_condition/ethnicity_name"  id="ethnicity_name"  value="<x:out select="$xmlData/data/declarant/wife_condition/ethnicity_name" />">
	</td>
	</tr>
	
	<tr  class="li_1">
	<td align="right">出生地：</td>
	<td><input id="birthplace"  name="declarant/wife_condition/birthplace" label="出生地" type="text"  class="input_css" style="width: 70%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/wife_condition/birthplace" />"/> 
  </td>
	<td align="right">政治面貌：</td>
	<td><input id="politics_status"  name="declarant/wife_condition/politics_status" label="政治面貌" type="text"  class="input_css" style="width: 70%;" maxlength="20"  value="<x:out select="$xmlData/data/declarant/wife_condition/politics_status" />"/> 
  </td>
	<td align="right">现任专业技术<br/>职称：</td>
	<td><input id="position"  name="declarant/wife_condition/position" label="现任专业技术职称" type="text"  class="input_css" style="width: 70%;"  maxlength="20" value="<x:out select="$xmlData/data/declarant/wife_condition/position" />"/> 
  </td>
	
	<tr  class="li_2">
	<td align="right" colspan="2">现工作单位及任职情况：</td>
	<td colspan="4"><input id="work_org"  name="declarant/wife_condition/work_org" label="现工作单位及任职情况" type="text"  class="input_css" style="width: 70%;" maxlength="50"  value="<x:out select="$xmlData/data/declarant/wife_condition/work_org" />"/> 
  </td>
  </tr>
  
  </table>
  
  
  
  <script type="text/javascript">
  function initTreeValuejsdtr(treeId, treeNode) {
		
		if (!(treeNode && treeNode.level > 0 ) ) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_code'],[id$='" + treeId
								+ "_code']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_name'],[id$='" + treeId
								+ "_name']").val("");
			}
			return false;
		}
		var oldval = $("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_code'],[id$='" + treeId + "_code']")
				.val();
		var oldname = $("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_name'],[id$='" + treeId + "_name']")
				.val();
		oldval = $.trim(oldval);
		oldname = $.trim(oldname);
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		if (treeId == 'impl_area') {

			if (treeNode.checked) {
				if (oldname != '')
					oldname += ',';
				if (oldval != '')
					oldval += ',';
				if(oldval.indexOf(treeNode.id)==-1)
					$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(oldval + treeNode.id);
				if(oldname.indexOf(str)==-1){
					$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(oldname + str);
					$("#" + treeId).parents("td").find("[name='" + treeId + "'],[id='" + treeId + "']").val(oldname + str);
				}
			} else {
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(("," + oldval).replace(',' + treeNode.id, '').substring(1));
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(("," + oldname).replace("," + str, '').substring(1));
				$("#" + treeId).parents("td").find("[name='" + treeId + "'],[id='" + treeId + "']").val(("," + oldname).replace("," + str, '').substring(1));
			}
		} else {
			$("#" + treeId).parents("td")
					.find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
			$("#" + treeId).parents("td")
					.find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		}

		
		$("#" + treeId + "_value").val(treeNode.id);

	}
	</script>